package com.spboot.app.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jntoo.db.DB;
import java.io.Serializable;
import java.util.*;

@TableName("yuyue")
public class Yuyue implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer changdiid;

    private String mingcheng;

    private Integer leixing;

    private String dengguang;

    private String feilei;

    private Double jiage;

    private String danhao;

    private Integer kahao;

    private String yuyueshijian;

    private String jieshushijian;

    private Integer shizhang;

    private Double jine;

    private String zhuangtai;

    private String yuyueren;
    private String iszf;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getQuxiaoCount() {
        return DB.name("quxiao").where("yuyueid", id).count();
    }

    public Integer getChangdiid() {
        return changdiid;
    }

    public void setChangdiid(Integer changdiid) {
        this.changdiid = changdiid == null ? 0 : changdiid;
    }

    public String getMingcheng() {
        return mingcheng;
    }

    public void setMingcheng(String mingcheng) {
        this.mingcheng = mingcheng == null ? "" : mingcheng.trim();
    }

    public Integer getLeixing() {
        return leixing;
    }

    public void setLeixing(Integer leixing) {
        this.leixing = leixing == null ? 0 : leixing;
    }

    public String getDengguang() {
        return dengguang;
    }

    public void setDengguang(String dengguang) {
        this.dengguang = dengguang == null ? "" : dengguang.trim();
    }

    public String getFeilei() {
        return feilei;
    }

    public void setFeilei(String feilei) {
        this.feilei = feilei == null ? "" : feilei.trim();
    }

    public Double getJiage() {
        return jiage;
    }

    public void setJiage(Double jiage) {
        this.jiage = jiage == null ? 0.0f : jiage;
    }

    public String getDanhao() {
        return danhao;
    }

    public void setDanhao(String danhao) {
        this.danhao = danhao == null ? "" : danhao.trim();
    }

    public Integer getKahao() {
        return kahao;
    }

    public void setKahao(Integer kahao) {
        this.kahao = kahao == null ? 0 : kahao;
    }

    public String getYuyueshijian() {
        return yuyueshijian;
    }

    public void setYuyueshijian(String yuyueshijian) {
        this.yuyueshijian = yuyueshijian == null ? "" : yuyueshijian.trim();
    }

    public String getJieshushijian() {
        return jieshushijian;
    }

    public void setJieshushijian(String jieshushijian) {
        this.jieshushijian = jieshushijian == null ? "" : jieshushijian.trim();
    }

    public Integer getShizhang() {
        return shizhang;
    }

    public void setShizhang(Integer shizhang) {
        this.shizhang = shizhang == null ? 0 : shizhang;
    }

    public Double getJine() {
        return jine;
    }

    public void setJine(Double jine) {
        this.jine = jine == null ? 0.0f : jine;
    }

    public String getZhuangtai() {
        return zhuangtai;
    }

    public void setZhuangtai(String zhuangtai) {
        this.zhuangtai = zhuangtai == null ? "" : zhuangtai.trim();
    }

    public String getYuyueren() {
        return yuyueren;
    }

    public void setYuyueren(String yuyueren) {
        this.yuyueren = yuyueren == null ? "" : yuyueren.trim();
    }

    public String getIszf() {
        return iszf;
    }

    public void setIszf(String iszf) {
        this.iszf = iszf == null ? "" : iszf.trim();
    }
}
